//
//  LEGoodsCell.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/12.
//  Copyright © 2017年 DFH. All rights reserved.
//

#import "LEGoodsCell.h"
#import "UIImageView+WebCache.h"

@interface LEGoodsCell()

@property (weak, nonatomic) IBOutlet UIImageView *goodsIV;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;


@end

@implementation LEGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(LEOrderGoodsModel *)model
{
    [self.goodsIV sd_setImageWithURL:[NSURL URLWithString:model.goods_image_url]];
    self.goodsNameLabel.text = model.goods_name;
    self.goodsNumberLabel.text = [NSString stringWithFormat:@"数量:%@",model.goods_num];
    self.priceLabel.text = model.goods_price;
}

@end
